package com.shopping_back.service;

import com.shopping_back.pojo.dto.UserInfoDTO;
import com.shopping_back.pojo.entity.UserProfile;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 用户档案表 服务类
 * </p>
 *
 * @author Jack
 * @since 2025-07-12
 */
public interface IUserProfileService extends IService<UserProfile> {

    UserInfoDTO getUserInfo(Long userId);

    void updateUserInfo(UserInfoDTO userInfoDTO);
    UserProfile getByUserId(Long userId);
    UserProfile getMember(Long userId);
    UserProfile exchangePoints(Long userId, Integer points, Integer wallet);

    int addPoints(Long userId, int points);

    int getMembershipLevel(Long userId);
}
